package com.text.day1_3;

import java.util.Scanner;

public class ForText {
    public static void main(String[] args) {
        double numb;
        Scanner scanner = new Scanner(System.in);
        numb = scanner.nextDouble();
        double max = numb;
        double min = numb;
        double coun = numb;
        for (int i = 1; i < 5; i++) {
            numb = scanner.nextDouble();
            if (numb > max)
                max = numb;
            if (numb < min)
                min = numb;
            coun += numb;

        }
        System.out.println("最大成绩" + max);
        System.out.println("最小成绩" + min);
        System.out.println("平均成绩" + coun / 5);


        //Integer.MAX_VALUE     int 的最大值
        // 三元式运行是赋值
    }
}
